package cn.mygweb.web.controller.interceptor;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/** 
* <p>Title: OneController.java</p>
* <p>Description: 测试拦截器的OneController类</p>  
* @author gxb 
* @date 2019年5月23日 
* <p>Copyright: Copyright (c) 2019</p>
* <p>Company: www.mygweb.cn</p> 
*/
@Controller
@RequestMapping("/one")
public class OneController {

	/**
	 * <p>Title: index</p>
	 * <p>Description: 访问index页面</p>
	 * @return
	 */
	@RequestMapping("/index")
	public String index(ModelMap map) {
		map.addAttribute("name","张三");
		return "index";
	}
	
}
